import React from 'react'
import without from '../utils/without'
function Detail({router}) {
  let {navigate,location}=router
  return (
    <div>
      <p>{location.state.word}</p>
      <img src={location.state.img}/>
    </div>
  )
}

export default without(Detail)